﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using IKapBoardClassLibrary;
using IKapC.NET;

namespace _2DLineCamera.Models
{
    public class Config
    {
        public string CameraName = "";
        public List<IkCameras> CameraNames = new List<IkCameras>();
        public string[] Camera_nType { get; set; }
        public string[] Cameran_nDevIndex { get; set; }
        public string[] Camera_nBoardIndex { get; set; }
        public string LeftConfigurationfilepath { get; set; }
        public string RightConfigurationfilepath { get; set; }

        public string LeftCameraConfigepath = " ";
        public string RightCameraConfigepath = " ";

        public string SaveImagePath { get; set; }
        public bool SaveImageCheck { get; set; }
        public string MesSavePath { get; set; }

        public string HikLeftCameraSeria { get; set; }
        public string HikRightCameraSeria { get; set; }

        public int HikLeftCameraExposureTime { get; set; }
        public int HikRightCameraExposureTime { get; set; }
        public string PLCIpAddress { get; set; }
        public int PLCPort { get; set; }

        public string StartLeft = "";
        public string End_Left = "";
        public string TestCodeReading_Left = "";
        public string TestMeasurement_Left = "";
        public string TestReult_Left = "";

        public string MinStartLeft = "";
        public string MinEnd_Left = "";
        public string MinTestReult_Left = "";

        public string MinStartRight = "";
        public string MinEnd_Right = "";
        public string MinTestReult_Right = "";

        public string StartRight = "";
        public string End_Right = "";
        public string TestCodeReading_Right = "";
        public string TestMeasurement_Right = "";
        public string TestReult_Right = "";

        public string SerialNumberL = "";
        public string SerialNumberR = "";

        public double Left_Scaled = 0;
        public double Right_Scaled = 0;

    }
    public class IkCameras
    {
   
        public string CameraName = "";
        public int Camera_nType=0;
        public int Cameran_nDevIndex=0;
        public int Camera_nBoardIndex=0;
        public string SerialNumber = "";
      
    }
    public class PLCAxisParameter
    {
        public float LeftStartPos;
        public float LeftNoIKCameraPos;
        public float LeftOffIKCameraPos;
        public float LeftNoHikCameraPos;
        public float LeftEndPos;

        public string LeftStartSpeed;
        public string LeftNoIKCameraSpeed;
        public string LeftOffIKCameraSpeed;
        public string LeftNoHikCameraSpeed;
        public string LeftEndSpeed;

        public float RightStartPos;
        public float RightNoIKCameraPos;
        public float RightOffIKCameraPos;
        public float RightNoHikCameraPos;
        public float RightEndPos;

        public string RightStartSpeed;
        public string RightNoIKCameraSpeed;
        public string RightOffIKCameraSpeed;
        public string RightNoHikCameraSpeed;
        public string RightEndSpeed;
    }


}
